<template>
  <div class="page-container">
    <PanelTab @change="handleChange" />
    <div class="page-content">
      <Panel1 :time="time" @showDialog="handleShowDialog" />
      <Panel2 :time="time" />
    </div>
  </div>
</template>

<script>
import PanelTab from '@/components/panel/PanelTab.vue'
import Panel1 from './components/Panel1.vue'
import Panel2 from './components/Panel2.vue'

export default {
  name: 'AloneBoard',
  components: { PanelTab, Panel1, Panel2 },
  data() {
    return {
      time: {},
      showDialogJobLog: false,
      showDialogAILog: false,
    }
  },
  mounted() {},
  destroyed() {},
  methods: {
    // 时间变动
    handleChange(time) {
      this.time = time
    },
    // 查看更多
    handleShowDialog(type) {
      if (type === 'job') {
        this.showDialogJobLog = true
      } else if (type === 'AI') {
        this.showDialogAILog = true
      }
    },
  },
}
</script>

<style scoped lang="scss"></style>
